package com.eshop.modules.product.service.dto;

import java.sql.Timestamp;
import com.alibaba.fastjson.JSONArray;
import java.io.Serializable;

public class StoreProductRuleDto implements Serializable
{
    private Integer id;
    private String ruleName;
    private JSONArray ruleValue;
    private Timestamp createTime;
    private Timestamp updateTime;
    private Integer isDel;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getRuleName() {
        return this.ruleName;
    }
    
    public JSONArray getRuleValue() {
        return this.ruleValue;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public Integer getIsDel() {
        return this.isDel;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setRuleName(final String ruleName) {
        this.ruleName = ruleName;
    }
    
    public void setRuleValue(final JSONArray ruleValue) {
        this.ruleValue = ruleValue;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    public void setUpdateTime(final Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    
    public void setIsDel(final Integer isDel) {
        this.isDel = isDel;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductRuleDto)) {
            return false;
        }
        final StoreProductRuleDto other = (StoreProductRuleDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$isDel = this.getIsDel();
        final Object other$isDel = other.getIsDel();
        Label_0102: {
            if (this$isDel == null) {
                if (other$isDel == null) {
                    break Label_0102;
                }
            }
            else if (this$isDel.equals(other$isDel)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$ruleName = this.getRuleName();
        final Object other$ruleName = other.getRuleName();
        Label_0139: {
            if (this$ruleName == null) {
                if (other$ruleName == null) {
                    break Label_0139;
                }
            }
            else if (this$ruleName.equals(other$ruleName)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$ruleValue = this.getRuleValue();
        final Object other$ruleValue = other.getRuleValue();
        Label_0176: {
            if (this$ruleValue == null) {
                if (other$ruleValue == null) {
                    break Label_0176;
                }
            }
            else if (this$ruleValue.equals(other$ruleValue)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0213: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0213;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$updateTime = this.getUpdateTime();
        final Object other$updateTime = other.getUpdateTime();
        if (this$updateTime == null) {
            if (other$updateTime == null) {
                return true;
            }
        }
        else if (this$updateTime.equals(other$updateTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductRuleDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $isDel = this.getIsDel();
        result = result * 59 + (($isDel == null) ? 43 : $isDel.hashCode());
        final Object $ruleName = this.getRuleName();
        result = result * 59 + (($ruleName == null) ? 43 : $ruleName.hashCode());
        final Object $ruleValue = this.getRuleValue();
        result = result * 59 + (($ruleValue == null) ? 43 : $ruleValue.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $updateTime = this.getUpdateTime();
        result = result * 59 + (($updateTime == null) ? 43 : $updateTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductRuleDto(id=" + this.getId() + ", ruleName=" + this.getRuleName() + ", ruleValue=" + this.getRuleValue() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", isDel=" + this.getIsDel() + ")";
    }
}
